package com.gwt.client;

import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;


public class ItemCell extends AbstractCell<ItemInfo> {

	public void render(Context context, ItemInfo value, SafeHtmlBuilder sb) {
		if (value == null) {
	        return;
	      }

	      sb.appendHtmlConstant("<table>");

	      // Add the contact image.
	      sb.appendHtmlConstant("<tr><td rowspan='3'>");
	      //sb.appendHtmlConstant(imageHtml);
	      sb.appendHtmlConstant("</td>");

	      // Add the name and address.
	      sb.appendHtmlConstant("<td style='font-size:95%;'>");
	      sb.appendEscaped(value.getName());
	      sb.appendHtmlConstant("</td></tr><tr><td>");
	      //sb.appendEscaped(value.getAddress());
	      sb.appendHtmlConstant("</td></tr></table>");
	    		
	}

}
